package com.goodmr.passport.webapp.model.request;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 社交平台登录请求数据包
 *
 * @author <a href="mailto:bingdong13@msn.com">bigo</a>
 */
@Getter
@Setter
public class SigninSocialReq extends SigninReq implements Serializable {

    private static final long serialVersionUID = -1209077418162338218L;

    /**
     * Authorization Code，社交平台返回的值，用于交换 access token
     */
    @NotBlank
    private String code;

    /**
     * 回调URL，用于做安全域校验
     */
    @NotBlank
    private String redirectUri;
}
